package net.orange.framework.logic;

import java.util.Collection;

import net.orange.architecture.db.Condition;
import net.orange.architecture.db.Conditions;
import net.orange.architecture.process.BaseProcess;

/**
 * The department business logical process object which implement the
 * IDepartmentProcess interface.
 */
public class DepartmentProcess extends BaseProcess implements
		IDepartmentProcess {
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * net.orange.framework.logic.IDepartmentProcess#findSubDepartments(long)
	 */
	public Collection findSubDepartments(long parent) throws Exception {
		Conditions cnds = new Conditions();
		cnds.add(new Condition("parent", parent));
		return dao.list(cnds);
	}

}